#include"threadPool.h"
int creatPool(threadPool_t *pool,int workerNum)
{
    int threadNum = workerNum;
    pool->pidArr = (pthread_t*)calloc(workerNum,sizeof(pthread_t));
    initList(&pool->taskQeuen);
    pthread_mutex_init(&pool->mutex,NULL);
    pthread_cond_init(&pool->cond,NULL);
    return 0;
}